home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Tools & Apps / Testing & Debugging / TV-Man Package / With Source Version / Resources / TV-Man.Errors.r next >
Encoding:
Text File  |  1991-11-13  |  3.7 KB  |  239 lines  |  [TEXT/MPS ]

  1. /*------------------------------------------------------------------------------
  2. #
  3. #    TV-Man.Errors.r    -    Rez Source
  4. #
  5. #    Copyright © Apple Computer, Inc. 1989-1990
  6. #    All rights reserved.
  7. #
  8. #    Version:    1.00
  9. #
  10. #    This file contains all of the error messages displayed by an alert box.
  11. #
  12. #    Revision Log:
  13. #    
  14. #        8-2-91        RGK        Creation
  15. #
  16. #
  17. ------------------------------------------------------------------------------*/
  18.  
  19.  
  20. /*    this will eliminate non Rez statements from the header files    */
  21.  
  22. #define    __Rezing__            
  23.  
  24.  
  25. /*    Now lets include all of the neecessary files.    */
  26.  
  27. #include "TV-Man.h"
  28. #include "SysTypes.r"
  29. #include "Types.r"
  30.  
  31. #include "TV-Man.Errors.h"
  32.  
  33.  
  34.  
  35.  
  36. /*------------------------------------------------------------------------------*/
  37. /* this ALRT is used as an error screen for major errors */
  38.  
  39. resource 'ALRT' (eMajor, "Major Error", purgeable)
  40. {
  41.     {35, 20, 175, 305},
  42.     eMajor,
  43.     
  44.     {    /* array: 4 elements */
  45.         /* [1] */
  46.         OK, visible, silent,
  47.         /* [2] */
  48.         OK, visible, silent,
  49.         /* [3] */
  50.         OK, visible, silent,
  51.         /* [4] */
  52.         OK, visible, silent
  53.     },
  54.     centerParentWindow
  55. };
  56.  
  57.  
  58.  
  59.  
  60. /*------------------------------------------------------------------------------*/
  61. /*    This is the Item List for the Major error Message Box    */
  62.  
  63. resource 'DITL' (eMajor, "Major Error Messages", purgeable) {
  64.     {    /* array DITLarray: 4 elements */
  65.         /* [1] */
  66.         {107, 192, 127, 272},
  67.         Button
  68.         {
  69.             enabled,
  70.             "OK"
  71.         },
  72.         
  73.         /* [2] */
  74.         {8, 51, 63, 273},
  75.         StaticText
  76.         {
  77.             disabled,
  78.             "A Major TV-Man error occurred!\nThe application"
  79.             " will be aborted\nbecause:"
  80.         },
  81.         
  82.         /* [3] */
  83.         {8, 8, 40, 40},
  84.         Icon
  85.         {
  86.             disabled,
  87.             2
  88.         },
  89.         
  90.         /* [4] */
  91.         {67, 51, 100, 273},
  92.         StaticText
  93.         {
  94.             disabled,
  95.             "^0"
  96.         }
  97.     }
  98. };
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107. /* This is the list of major error messages */
  108.  
  109. resource 'STR#' (eMajor, "Major Error Messages", purgeable)
  110. {
  111.     {
  112.         /* [1] */
  113.         "Need 128K or Bigger ROMs.",
  114.         
  115.         /* [2] */
  116.         "Heap is to small.",
  117.         
  118.         /* [3] */
  119.         "Not enough RAM left.",
  120.         
  121.         /* [4] */
  122.         "Could not open the resource.",
  123.         
  124.         /* [5] */
  125.         "Could not get a Window pointer.",
  126.         
  127.         /* [6] */
  128.         "Could not get the MenuBar pointer.",
  129.         
  130.         /* [7] */
  131.         "Could not open the Dialog Box.",
  132.         
  133.         /* [8] */
  134.         "Can not dispose of the Sound Channel."
  135.     }
  136. };
  137.  
  138.  
  139.  
  140.  
  141. /*------------------------------------------------------------------------------*/
  142. /* this ALRT is used as an error screen for minor errors */
  143.  
  144. resource 'ALRT' (eMinor, "Minor Error", purgeable)
  145. {
  146.     {35, 20, 175, 305},
  147.     eMinor,
  148.     
  149.     {    /* array: 4 elements */
  150.         /* [1] */
  151.         OK, visible, silent,
  152.         /* [2] */
  153.         OK, visible, silent,
  154.         /* [3] */
  155.         OK, visible, silent,
  156.         /* [4] */
  157.         OK, visible, silent
  158.     },
  159.     centerParentWindow
  160. };
  161.  
  162.  
  163.  
  164.  
  165.  
  166. /*------------------------------------------------------------------------------*/
  167. /*    This is the Item List for the Minor error Message Box    */
  168.  
  169. resource 'DITL' (eMinor, "Minor Error Messages", purgeable)
  170. {
  171.     {
  172.         /* [1] */
  173.         {107, 192, 127, 272},
  174.         Button
  175.         {
  176.             enabled,
  177.             "OK"
  178.         },
  179.         
  180.         /* [2] */
  181.         {8, 51, 63, 273},
  182.         StaticText
  183.         {
  184.             disabled,
  185.             "A Minor TV-Man error occurred!\nThe function"
  186.             " will be aborted\nbecause:"
  187.         },
  188.         /* [3] */
  189.         {8, 8, 40, 40},
  190.         Icon
  191.         {
  192.             disabled,
  193.             2
  194.         },
  195.         
  196.         /* [4] */
  197.         {67, 51, 100, 273},
  198.         StaticText
  199.         {
  200.             disabled,
  201.             "^0"
  202.         }
  203.     }
  204. };
  205.  
  206.  
  207.  
  208.  
  209. /* This is the list of minor error messages */
  210.  
  211. resource 'STR#' (eMinor, "Minor Error Messages", purgeable)
  212. {
  213.     {
  214.         /* [1] */
  215.         "This function is not ready yet!",
  216.         
  217.         /* [2] */
  218.         "The resource could not be opened.",
  219.         
  220.         /* [3] */
  221.         "The dialog could not be opened.",
  222.         
  223.         /* [4] */
  224.         "The menu could not be opened.",
  225.         
  226.         /* [5] */
  227.         "The sound channel could not be opened.",
  228.         
  229.         /* [6] */
  230.         "That Sound is not avaliable.",
  231.         
  232.         /* [7] */
  233.         "Can not dispose of the Sound Channel.",
  234.         
  235.         /* [8]    */
  236.         "Can not play the assigned Resource."
  237.     }
  238. };
  239.